import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
//导入svg配置项
import "virtual:svg-icons-register";
//svg插件需要配置的代码
import SvgIcon from "@/components/Svgicon/index.vue";
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
//引入自定义插件对象
import globalComponents from "@/components/index";
//引入全局样式
import "@/style/index.scss";
const app = createApp(App);
app.component("SvgIcon", SvgIcon);
app.use(ElementPlus, {
  locale: zhCn,
});
//安装自定义插件
app.use(globalComponents);
app.mount("#app");
